function Setcookie (name, value,sed)//设置值

{
    //设置名称为name,值为value的Cookie
    var expdate = new Date();   //初始化时间
    expdate.setTime(expdate.getTime() + sed * 1000);   //时间
    document.cookie = name+"="+value+";expires="+expdate.toGMTString()+";path=/";
}
function getCookie(c_name)//取值
{
    let c_start;
    let c_end;
    if (document.cookie.length > 0) {
        c_start = document.cookie.indexOf(c_name + "=")
        if (c_start != -1) {
            c_start = c_start + c_name.length + 1
            c_end = document.cookie.indexOf(";", c_start)
            if (c_end == -1) c_end = document.cookie.length
            return unescape(document.cookie.substring(c_start, c_end))
        }
    }
    return ""
}
//清除cookie
function clearCookie(name) {
    Setcookie(name, "", -1);
}
//var ABaseURL="http://101.34.164.160:8579"
var ABaseURL="http://127.0.0.1:8081"
var APPName="大肥羊家教网"